XPDFViewer_Unicode
Type
command
Summary
This command sets the value of a named variable to the UTF16 encoded text of a specific page.
Syntax
XPDFViewer_Unicode <viewerName>, <pageNumber>, <variableName>
Description
The following errors may be thrown by the command:
- XPDF_ERROR: incorrect number of parameters
- XPDF_ERROR: PDF viewer not found
Parameters
Name | Type | Description |
---|---|---|
viewerName | string | The name of the viewer. |
pageNumber | integer | The pageNumber to return the text of. |
variableName | string | The name of the variable to set to the unicode text of the page. |
Examples
local thePageText
XPDFViewer_Unicode "Document1", 3, "thePageText"
set the text of field "page text" to textDecode(thePageText,"UTF16")
Compatibility and Support
Introduced
LiveCode 1.0.0
OS
mac
windows
Platforms
desktop